import $ from 'jquery'
export default function (url,date,f) {
  $.ajax({
    type : "POST",
    headers:{

    },
   // url : "http://47.96.26.190:8080/"+url,
     url : "http://localhost:8080/"+url,
   //  url: 'http://47.98.200.7:8080/' + url,
    contentType : "application/json; charset=utf-8",
    data : JSON.stringify(date),
    //dataType : "json",
    success : f,
    error : function(message) {
      console.log(message);
    }
  });
}
